package com.kuangstudy.io.test;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

/**
 * ClassName: Demo3
 * date: 2021/07/16 21:00:21
 *
 * @author zlk
 */
public class Demo3 {
    public static void main(String[] args) throws IOException {
        OutputStreamWriter gbk = new OutputStreamWriter(new FileOutputStream("e:\\a.txt"),"gbk");
        gbk.write("你好");
        gbk.close();
    }
}
